"use strict";
var rvc = require("../..");
var app = new rvc.App();
var view = rvc.view;
var fs = require("fs");

app.use(view(__dirname + "/views"));
app.get("/", function (req, res) {
    res.view("index.html", {title: "index page", name: "ray zhang"});
});

app.get("/about",function(req,res){
    var info = [
        ["name","ray zhang"],
        ["Tel","123456"],
        ["Card","3222"]
    ];

    res.view('about.html',{title:"about me zhangray",info:info});
});

app.listen(3000);
